package com.tabjin.rfidsocket.authority.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author Tabjin
 * create at 2021/2/26 14:46
 * @program emos-wx-api
 * @description
 */

public class OAuth2Token implements AuthenticationToken {
    private String token;

    public OAuth2Token(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
